-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renamed GRASS GIS locations to projects #565
base: main
Are you sure you want to change the base?
Conversation
src/actinia_core/processing/actinia_processing/ephemeral/download_cache_management.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Carmen Tawalika <[email protected]>
grass_version_s = G_VERSION["version"] | ||
grass_version = [int(item) for item in grass_version_s.split(".")[:2]] | ||
if grass_version >= [8, 4]: | ||
param["projects"] = projects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might break with LocationListResponseModel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine if this PR stays open as long as it takes to also adjust actinia-api but I would suggest to do adjustments in a separate PR.
…re into renamed_locations
"endpoint": http_request.endpoint, | ||
# For depricated location endpoints remove "_locations" from | ||
# endpoint class name | ||
"endpoint": http_request.endpoint.replace("_locations", ""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is needed because I can't add two urls for one endpoint. The endpoint is inside the actinia response and is used for the job jesumption.
"endpoint": request.endpoint, | ||
# For depricated location endpoints remove "_locations" from | ||
# endpoint class name | ||
"endpoint": request.endpoint.replace("_locations", ""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here? I guess for the same reason 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Co-authored-by: Carmen Tawalika <[email protected]>
…re into renamed_locations
Co-authored-by: Carmen Tawalika <[email protected]>
…re into renamed_locations
Renamed GRASS GIS locations to projects from GRASS GIS version 8.4: